#ifndef QCALENDARDIALOG_H
#define QCALENDARDIALOG_H

#include <QDialog>

namespace Ui {
class QCalendarDialog;
}

class QCalendarDialog : public QDialog
{
    Q_OBJECT

public:
    enum State {
        Ok,
        Cancel
    };

public:
    explicit QCalendarDialog(QWidget *parent = 0);
    ~QCalendarDialog();

public:
    QDate selectedDate() const;
    State getState() const { return state; }

private slots:
    void on_OkButton_clicked();

    void on_CancelButton_clicked();

private:
    Ui::QCalendarDialog *ui;

    State state;
};

#endif // QCALENDARDIALOG_H
